package com.example.webflux;

import org.springframework.web.reactive.function.client.WebClient;

public class WebclintDemo {
    public static void main(String[] args) throws InterruptedException {
        WebClient webClient=WebClient.builder().build();
        webClient.get().uri("http://localhost:8883/threadtest").retrieve().bodyToMono(User.class).subscribe(i-> System.out.println(i.getName()));

        Thread.currentThread().join();
    }
}
